package com.landscope.central.mapper;

import com.landscope.central.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Optional;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Optional<User> findByAccount(@Param("account") String account);
}